<template>
  <div class="app-container">
    <el-card class="box-card">
      <!--<div slot="header" class="clearfix">-->
        <!--<span>重启</span>-->
      <!--</div>-->

      <el-button type="primary" @click="restartConfirm">重启</el-button>
      <!--<div v-for="o in 4" :key="o" class="text item">-->
      <!--{{'列表内容 ' + o }}-->
      <!--</div>-->
      <p class="timingsMsg">注意：在相机重启过程中，耐心等待，请不要断电</p>
    </el-card>
    <restart-tool @closeDialog="closeDialog" :dialogVisible="dialogVisible"></restart-tool>
  </div>
</template>

<script>
  import restartTool from '../public/restartConfirm'
    export default {
        name: "restart",
      data:function(){
        return{
          dialogVisible: false,
          loading:false,
          restartStatus:false
        }
      },
      components:{
          'restart-tool':restartTool
      },
      methods:{
        closeDialog:function(){
          this.dialogVisible=false
        },
        restartConfirm:function(){
          var _this=this
          _this.dialogVisible=true
          // console.log(this.$refs[]);
          // console.log(this.$refs.restartView);
          // console.log(restartTool);
          // restartTool.dialogVisible=true
          console.log('确定重启');

          // this.dialogVisible=true
        }
      }
    }
</script>

<style scoped>
  .timingsMsg{
    color:red;
    font-size: 14px;
  }
</style>
